import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import AddStudent from '@/components/AddStudent'
import UpdateStudent from '@/components/UpdateStudent'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    //添加学生
    {
      path: '/addStudent',
      name: 'AddStudent',
      component: AddStudent
    },
    //更新学生
    {
      path: '/updateStudent',
      name: 'UpdateStudent',
      component: UpdateStudent
    }

  ]
})
